package myextends.test;

public class Teacher extends People {
    public Teacher(){

    }
    public Teacher(String name,int age){
//        super.setName(name);
//        super.setAge(age);
          super(name,age);
    }
    public void teach(){
        System.out.println("姓名:"+getName()+"年龄:"+getAge()+"的老师在讲课");
    }
}
